import Foundation

struct FoodTypeListRespModel: Codable {
    var data: [FoodTypeItemRespModel]
}

struct FoodTypeItemRespModel: Codable, Identifiable, Equatable {
    let id: Int
    let parentId: Int
    let name: String
    var picFile: PicFileRespModel?
    var children: [FoodTypeItemRespModel]?
    
    static func == (lhs: FoodTypeItemRespModel, rhs: FoodTypeItemRespModel) -> Bool {
        lhs.id == rhs.id
    }
}

struct PicFileRespModel: Codable {
    let url: String
}
